package edu.upb.acs.jobsmaps.database.task;

import android.os.AsyncTask;
import edu.upb.acs.jobsmaps.database.mysql.ExternalDatabaseHelper;
import edu.upb.acs.jobsmaps.entity.Company;

import java.util.Collection;

public class SearchCompaniesTask extends AsyncTask<String, Void, Collection<Company>> {
    @Override
    protected Collection<Company> doInBackground(String... params) {
		String searchCriteria = params[0];
		String searchWord = params[1];

		return  ExternalDatabaseHelper.searchCompanies(searchCriteria, searchWord);
    }
}
